package store.lunangangster.engine.impl.entity.mgr;

import java.util.List;
import store.lunangangster.engine.impl.entity.ProcessDefinitionEntity;
import store.lunangangster.engine.impl.query.ProcessDefinitionQuery;

public interface ProcessDefinitionEntityManager extends EntityManager<ProcessDefinitionEntity> {

  int selectCount(ProcessDefinitionQuery query);

  List<ProcessDefinitionEntity> selectProcessDefinitionByCondition(ProcessDefinitionQuery query);

  List<ProcessDefinitionEntity> selectLatestProcessDefinitionByDeploymentId(String deploymentId);

  ProcessDefinitionEntity selectLatestProcessDefinitionByKey(String key);

}
